import request from '@/utils/request'
//======================权限模块


//获取权限点
export function getRights(){
  return request({
    url:`/rights`,
    method:'get'


  })

}

//新增权限点
export function addRights(data){

  return request({
    url:'/rights',
    method:'post',
    data,
  })


}


//根据id删除权限点
export function delRights(id){

  return request({
    url:`/rights/${id}`,
    method:'delete'
  })

}


//根据id获取权限详情
export function getdetailRights(id){

  return request({
    url:`/rights/${id}`,
    method:'get'

  })
}

//更新权限信息
export function updataRights(data){
  return request({

    url:`/rights`,
    method:'put',
    data,

  })

}
